package com.study.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

/**
 * @author yinyin
 * @create 2024/12/04 下午 2:47
 */

public class User {
    private Integer userId;
    private  String userTel;
    private String userEmail;
    private String userPwd;
    private Date userBirthday;
    private  Integer userGrade;

    public User() {
    }

    public User(Integer userId, String userTel, String userEmail, String userPwd, Date userBirthday, Integer userGrade) {
        this.userId = userId;
        this.userTel = userTel;
        this.userEmail = userEmail;
        this.userPwd = userPwd;
        this.userBirthday = userBirthday;
        this.userGrade = userGrade;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userTel='" + userTel + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userBirthday=" + userBirthday +
                ", userGrade=" + userGrade +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public Date getUserBirthday() {
        return userBirthday;
    }

    public void setUserBirthday(Date userBirthday) {
        this.userBirthday = userBirthday;
    }

    public Integer getUserGrade() {
        return userGrade;
    }

    public void setUserGrade(Integer userGrade) {
        this.userGrade = userGrade;
    }
}
